Determines the tangent of an angle. The angle is specified in radians.
角度のタンジェントを指定します。 角度はラジアン単位で指定します。
Using the angle Alpha, the Tan Function calculates the ratio of the length of the side opposite the angle to the length of the side adjacent to the angle in a right-angled triangle.
たとえば角度αの Tan 値は、角度αを 1 つの頂角とする直角三角形を想定して、この頂点に隣接する辺と対辺の長さの比 (対辺÷隣接する辺) として計算します。
Tan(Alpha) = side opposite the angle/side adjacent to angle
Tan (α) = 頂点αの対辺の長さ/頂点αに隣接する辺の長さ
Tan (Number)
Tan (Number)
Double
倍精度
Number: Any numeric expression that you want to calculate the tangent for (in radians).
Number: Tan 値を計算させる角度を示す数値表式 (単位はラジアン)。
To convert degrees to radians, multiply by Pi/180. To convert radians to degrees, multiply by 180/Pi.
通常の角度をラジアン値に変換するには、角度×π/180 と計算します。ラジアン値を通常の角度に変換するには、ラジアン値×180/π と計算します。
degrees=(radiant*180)/Pi
度数=(ラジアン*180)/Pi
radiant=(degrees*Pi)/180
ラジアン=(度数*Pi)/180
Pi is approximately 3.141593.
ここで pi は近似値で 3.141593 という値です。
REM In this example, the following entry is possible for a right-angled triangle:
REM この例では、直角三角形を想定しています。
REM The side opposite the angle and the angle (in degrees) to calculate the length of the side adjacent to the angle:
REM ここでは 1 つの頂角 (通常の角度) とその対辺の長さから、この頂点に隣接する辺の長さを計算しています。
Sub ExampleTangens
Sub ExampleTangens
REM Pi = 3.1415926 is a pre-defined variable
REM Pi = 3.1415926 は事前定義されている定数
Dim d1 as Double
Dim d1 as Double
Dim dAlpha as Double
Dim dAlpha as Double
d1 = InputBox$ ("Enter the length of the side opposite the angle: ","opposite")
d1 = InputBox$ ("Enter the length of the side opposite the angle:","opposite")
dAlpha = InputBox$ ("Enter the Alpha angle (in degrees): ","Alpha")
dAlpha = InputBox$ ("Enter the Alpha angle (in degrees):","Alpha")
Print "the length of the side adjacent the angle is"; (d1 / tan (dAlpha * Pi / 180))
Print "the length of the side adjacent the angle is"; (d1 / tan (dAlpha * Pi / 180))
End Sub
End Sub